<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    :maskClosable="false"
    :keyboard="false"
    :forceRender="true"
    @cancel="handleCancel"
    wrapClassName="ant-modal-cust-warp"
    style="top:5%;height: 100%;overflow-y: hidden">
    <template slot="footer">
      <a-button v-if="billPrintFlag" @click="handlePrint">{{$t('inPrint.triplePreview')}}</a-button>
      <!--此处为解决缓存问题-->
      <a-button v-if="billType === '零售出库'" v-print="'#retailOutPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '零售退货入库'" v-print="'#retailBackPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '采购订单'" v-print="'#purchaseOrderPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '采购入库'" v-print="'#purchaseInPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '要货申请进度表'" v-print="'#purchasingApplicationSchedulePrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '采购退货出库'" v-print="'#purchaseBackPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '销售订单'" v-print="'#saleOrderPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '促销特价订单'" v-print="'#specialPromotionPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === $t('manuManagement.salesDelivery')" v-print="'#saleOutPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '销售退货入库'" v-print="'#saleBackPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '其它入库'" v-print="'#otherInPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '其它出库'" v-print="'#otherOutPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '验收入库2'" v-print="'#acceptanceCertificatePrint1'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '验收单'" v-print="'#acceptanceCertificatePrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '配送单'" v-print="'#deliveryNotePrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '配送出库'" v-print="'#deliveryNotePrint1'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '期初库存'" v-print="'#openingInventoryPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '要货申请单'" v-print="'#requisitionFormPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '调拨出库'" v-print="'#allocationOutPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '组装单'" v-print="'#assemblePrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '拆卸单'" v-print="'#disassemblePrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button v-if="billType === '盘点复盘'" v-print="'#stockCheckReplayPrint'">{{$t('inPrint.normalPrinting')}}</a-button>
      <a-button key="back" @click="handleCancel">{{$t('inPrint.cancel')}}</a-button>
    </template>
    <a-form :form="form">
      <!--零售出库-->
      <template v-if="billType === '零售出库'">
        <section ref="print" id="retailOutPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.membershipCardNumber')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.collectionType')">
                {{model.payType}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="18" :md="12" :sm="24">
              <div :style="tableWidthRetail">
                <a-table
                  ref="table"
                  size="middle"
                  bordered
                  rowKey="id"
                  :pagination="false"
                  :columns="columns"
                  :dataSource="dataSource">
                </a-table>
              </div>
            </a-col>
            <a-col :span="6">
              <a-row class="form-row" :gutter="24">
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.documentAmount')">
                    {{model.changeAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.amountCollected')">
                    {{model.getAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.giveChange')">
                    {{model.backAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.collectionAccount')">
                    {{model.accountName}}
                  </a-form-item>
                </a-col>
              </a-row>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--零售退货-->
      <template v-else-if="billType === '零售退货入库'">
        <section ref="print" id="retailBackPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.membershipCardNumber')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="18" :md="12" :sm="24">
              <div :style="tableWidthRetail">
                <a-table
                  ref="table"
                  size="middle"
                  bordered
                  rowKey="id"
                  :pagination="false"
                  :columns="columns"
                  :dataSource="dataSource">
                </a-table>
              </div>
            </a-col>
            <a-col :span="6">
              <a-row class="form-row" :gutter="24">
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.documentAmount')">
                    {{model.changeAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.paymentAmount')">
                    {{model.getAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.giveChange')">
                    {{model.backAmount}}
                  </a-form-item>
                </a-col>
                <a-col :lg="24" :md="6" :sm="6">
                  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.paymentAccount')">
                    {{model.accountName}}
                  </a-form-item>
                </a-col>
              </a-row>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--采购订单-->
      <template v-else-if="billType === '采购订单'">
        <section ref="print" id="purchaseOrderPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.supplier')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item v-if="purchaseBySaleFlag" :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('popup.relatedOrder')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.paymentPreference')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.payDeposit')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
        </section>
      </template>
      <!--采购入库-->
      <template v-else-if="billType === '采购入库'">
        <section ref="print" id="purchaseInPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.supplier')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('popup.relatedOrder')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.paymentPreference')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.otherExpenses')">
                {{model.otherMoney}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col v-if="model.deposit" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.deductDeposit')">
                {{model.deposit}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.thisPayment')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.currentArrears')">
                {{model.debt}}
              </a-form-item>
            </a-col>
            <a-col v-if="financialBillNoList.length" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.paymentNo')">
                <template v-for="(item, index) in financialBillNoList" >
                  <a @click="myHandleFinancialDetail(item.billNo)">{{item.billNo}}</a><br/>
                </template>
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--采购退货-->
      <template v-else-if="billType === '采购退货出库'">
        <section ref="print" id="purchaseBackPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.supplier')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.refundOffers')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.otherExpenses')">
                {{model.otherMoney}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.thisRefund')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.currentArrears')">
                {{model.debt}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
            </a-col>
          </a-row>
        </section>
      </template>
      <!--要货申请进度表-->
      <template v-else-if="billType === '要货申请进度表'">
        <section ref="print" id="purchasingApplicationSchedulePrint">
          <a-row class="form-row" :gutter="24">
            <!-- <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col> -->
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <!-- <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col> -->
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <!-- <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" label="优惠后金额">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
                {{model.otherMoney}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col v-if="model.deposit" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="扣除订金">
                {{model.deposit}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次付款">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
                {{model.debt}}
              </a-form-item>
            </a-col>
            <a-col v-if="financialBillNoList.length" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
                <template v-for="(item, index) in financialBillNoList">
                  <a @click="myHandleFinancialDetail(item.billNo)">{{item.billNo}}</a><br/>
                </template>
              </a-form-item>
            </a-col>
          </a-row> -->
        </section>
      </template>
      <!--促销特价订单-->
      <template v-else-if="billType === '促销特价订单'">
        <section ref="print" id="specialPromotionPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.customer')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.salesman')">
                {{model.salesManStr}}
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <!-- <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" label="优惠后金额">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
          </a-row> -->
          <!-- <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收取订金">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row> -->
        </section>
      </template>
      <!--销售订单-->
      <template v-else-if="billType === '销售订单'">
        <section ref="print" id="saleOrderPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.customer')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.salesman')">
                {{model.salesManStr}}
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.paymentPreference')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.collectDeposit')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
        </section>
      </template>
      <!--销售出库-->
      <template v-else-if="billType === $t('manuManagement.salesDelivery')">
        <section ref="print" id="saleOutPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.customer')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('popup.relatedOrder')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.collectionPreference')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.otherExpenses')">
                {{model.otherMoney}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col v-if="model.deposit" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.deductDeposit')">
                {{model.deposit}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.currentCollection')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.currentArrears')">
                {{model.debt}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.salesman')">
                {{model.salesManStr}}
              </a-form-item>
            </a-col>
            <a-col v-if="financialBillNoList.length" :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.receiptNo')">
                <template v-for="(item, index) in financialBillNoList">
                  <a @click="myHandleFinancialDetail(item.billNo)">{{item.billNo}}</a><br/>
                </template>
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--销售退货-->
      <template v-else-if="billType === '销售退货入库'">
        <section ref="print" id="saleBackPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.customer')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                <a @click="myHandleDetail(model.linkNumber)">{{model.linkNumber}}</a>
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.preferentialRate')">
                {{model.discount}}%
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.refundOffers')">
                {{model.discountMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 6 }}" :wrapperCol="wrapperCol" :label="$t('inPrint.amountAfter')">
                {{model.discountLastMoney}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.otherExpenses')">
                {{model.otherMoney}}
              </a-form-item>
            </a-col>
          </a-row>
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.settlementAccount')">
                {{model.accountName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.thisRefund')">
                {{model.changeAmount}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.currentArrears')">
                {{model.debt}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('inPrint.salesman')">
                {{model.salesManStr}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--其它入库-->
      <template v-else-if="billType === '其它入库'">
        <section ref="print" id="otherInPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('financialManagement.supplier')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                {{model.linkNumber}} {{model.billType}}
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--其它出库-->
      <template v-else-if="billType === '其它出库'">
        <section ref="print" id="otherOutPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('manuManagement.customer')">
                <a-input v-decorator="['id']" hidden/>
                {{model.organName}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                {{model.linkNumber}} {{model.billType}}
              </a-form-item>
            </a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--验收单-->
      <template v-else-if="billType === '验收单'">
        <section ref="print" id="acceptanceCertificatePrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--验收入库-->
      <template v-else-if="billType === '验收入库'">
        <section ref="print" id="acceptanceCertificatePrint1">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--配送单-->
      <template v-else-if="billType === '配送单'">
        <section ref="print" id="deliveryNotePrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--期初库存-->
      <template v-else-if="billType === '期初库存'">
        <section ref="print" id="openingInventoryPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--配送出库-->
      <template v-else-if="billType === '配送出库'">
        <section ref="print" id="deliveryNotePrint1">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--要货申请单-->
      <template v-else-if="billType === '要货申请单'">
        <section ref="print" id="requisitionFormPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--调拨出库-->
      <template v-else-if="billType === '调拨出库'">
        <section ref="print" id="allocationOutPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--组装单-->
      <template v-else-if="billType === '组装单'">
        <section ref="print" id="assemblePrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--拆卸单-->
      <template v-else-if="billType === '拆卸单'">
        <section ref="print" id="disassemblePrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <!--盘点复盘-->
      <template v-else-if="billType === '盘点复盘'">
        <section ref="print" id="stockCheckReplayPrint">
          <a-row class="form-row" :gutter="24">
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentDate')">
                {{model.operTimeStr}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.documentNo')">
                {{model.number}}
              </a-form-item>
            </a-col>
            <a-col :span="6">
              <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('setailManagement.associatedDocument')">
                {{model.linkNumber}}
              </a-form-item>
            </a-col>
            <a-col :span="6"></a-col>
          </a-row>
          <div :style="tableWidth">
            <a-table
              ref="table"
              size="middle"
              bordered
              rowKey="id"
              :pagination="false"
              :columns="columns"
              :dataSource="dataSource">
            </a-table>
          </div>
          <a-row class="form-row" :gutter="24">
            <a-col :lg="24" :md="24" :sm="24">
              <a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="" style="padding:20px 10px;">
                {{model.remark}}
              </a-form-item>
            </a-col>
          </a-row>
        </section>
      </template>
      <template v-if="fileList && fileList.length>0">
        <a-row class="form-row" :gutter="24">
          <a-col :span="10">
            <a-form-item :labelCol="{xs: { span: 24 },sm: { span: 3 }}" :wrapperCol="{xs: { span: 24 },sm: { span: 21 }}" label="附件">
              <!-- <div v-if="fileLoading">Loading...</div> -->
              <j-upload  :fileList="fileList" bizPath="bill" :disabled="true" :buttonVisible="false"></j-upload>
            </a-form-item>
          </a-col>
          <a-col :span="14"></a-col>
        </a-row>
      </template>
    </a-form>
    <bill-print-iframe ref="modalDetail"></bill-print-iframe>
    <financial-detail ref="financialDetailModal"></financial-detail>
  </j-modal>
</template>

<script>
  import pick from 'lodash.pick'
  import { getAction } from '@/api/manage'
  import { findBillDetailByNumber, findFinancialDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
  import { getMpListShort } from "@/utils/util"
  import BillPrintIframe from './BillPrintIframe'
  import FinancialDetail from '../../financial/dialog/FinancialDetail'
  import JUpload from '@/components/jeecg/JUpload'
  import Vue from 'vue'
  export default {
    name: 'BillDetail',
    components: {
      BillPrintIframe,
      FinancialDetail,
      JUpload
    },
    data () {
      return {
        title: this.$t('reportQuery.details'),
        width: '1600px',
        visible: false,
        model: {},
        billType: '',
        billPrintFlag: false,
        fileList: [],
        purchaseBySaleFlag: false,
        financialBillNoList: [],
        tableWidth: {
          'width': '1500px'
        },
        tableWidthRetail: {
          'width': '1150px'
        },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        form: this.$form.createForm(this),
        loading: false,
        dataSource: [],
        url: {
          detailList: '/depotItem/getDetailList'
        },
        //表头
        columns:[],
        //列定义
        defColumns: [],
        retailOutColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        retailBackColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        purchaseOrderColumns: [
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('inPrint.received'), dataIndex: 'finishNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        purchaseInColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        purchasingApplicationScheduleColumns: [
          { title: this.$t('otherJS.oppositeWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('popup.demandQuantity'), dataIndex: 'applyNumber'},
          { title: this.$t('popup.numberOfDeliveries'), dataIndex: 'deliveryNumber'},
          { title: this.$t('popup.acceptanceNumber'), dataIndex: 'checkNumber'},
          { title: this.$t('otherJS.documentTime'), dataIndex: 'createTime'},
          { title: this.$t('otherJS.docNo'), dataIndex: 'defaultNumber'},
          { title: this.$t('reportQuery.warehouse'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'materialUnit'},
          { title: this.$t('otherJS.productName'), dataIndex: 'name'},
          { title: this.$t('setailManagement.state'), dataIndex: 'status'},
          { title: this.$t('manuManagement.supplier'), dataIndex: 'supplier'},
          // { title: '仓库名称', dataIndex: 'depotName'},
          // { title: '条码', dataIndex: 'barCode'},
          // { title: '名称', dataIndex: 'name'},
          // { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          // { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          // { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          // { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          // { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          // { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          // { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          // { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          // { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          // { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          // { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          // { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          // { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          // { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          // { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        purchaseBackColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        specialPromotionColumns: [
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          // { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          // { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'commodityUnit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          // { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('inPrint.issued'), dataIndex: 'finishNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          // { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          // { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          // { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          // { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          // { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        saleOrderColumns: [
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('inPrint.issued'), dataIndex: 'finishNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        saleOutColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        saleBackColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('basicInformation.taxRate'), dataIndex: 'taxRate'},
          { title: this.$t('inPrint.taxAmount'), dataIndex: 'taxMoney'},
          { title: this.$t('inPrint.totalTax'), dataIndex: 'taxLastMoney'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        otherInColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        otherOutColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        allocationOutColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 验收单
        acceptanceCertificateColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 验收入库
        acceptanceCertificateColumns1: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 配送单
        deliveryNoteColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 配送出库
        deliveryNoteColumns1: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 期初库存
        openingInventoryColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          // { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          // { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        // 要货申请单
        requisitionFormColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.transferInWarehouse'), dataIndex: 'anotherDepotName'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('inPrint.serialNumber'), dataIndex: 'snList'},
          { title: this.$t('commodityManagement.batchNumber'), dataIndex: 'batchNumber'},
          { title: this.$t('inPrint.termValidity'), dataIndex: 'expirationDate'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        assembleColumns: [
          { title: this.$t('systemManagement.commodityType'), dataIndex: 'mType'},
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        disassembleColumns: [
          { title: this.$t('systemManagement.commodityType'), dataIndex: 'mType'},
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          // { title: '颜色', dataIndex: 'color'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ],
        stockCheckReplayColumns: [
          { title: this.$t('basicInformation.warehouseName'), dataIndex: 'depotName'},
          { title: this.$t('reportQuery.barcode'), dataIndex: 'barCode'},
          { title: this.$t('reportQuery.name'), dataIndex: 'name'},
          { title: this.$t('reportQuery.specification'), dataIndex: 'standard'},
          { title: this.$t('reportQuery.model'), dataIndex: 'model'},
          { title: this.$t('reportQuery.extendedInformation'), dataIndex: 'materialOther'},
          { title: this.$t('reportQuery.inventory'), dataIndex: 'stock'},
          { title: this.$t('reportQuery.unit'), dataIndex: 'unit'},
          { title: this.$t('commodityManagement.multiAttribute'), dataIndex: 'sku'},
          { title: this.$t('reportQuery.quantity'), dataIndex: 'operNumber'},
          { title: this.$t('reportQuery.unitPrice'), dataIndex: 'unitPrice'},
          { title: this.$t('reportQuery.amount'), dataIndex: 'allPrice'},
          { title: this.$t('financialManagement.remarks'), dataIndex: 'remark'}
        ]
      }
    },
    created () {
      let realScreenWidth = window.screen.width
      this.width = realScreenWidth<1500?'1300px':'1550px'
      this.tableWidth = {
        'width': realScreenWidth<1500?'1250px':'1500px'
      }
      this.tableWidthRetail = {
        'width': realScreenWidth<1500?'900px':'1100px'
      }
    },
    methods: {
      initSetting(record, type, ds) {
        if (type === '零售出库') {
          this.defColumns = this.retailOutColumns
        } else if (type === '零售退货入库') {
          this.defColumns = this.retailBackColumns
        } else if (type === '采购订单') {
          this.defColumns = this.purchaseOrderColumns
        } else if (type === '采购入库') {
          this.defColumns = this.purchaseInColumns
        } else if (type === '采购退货出库') {
          this.defColumns = this.purchaseBackColumns
        } else if (type === '要货申请进度表') {
          this.defColumns = this.purchasingApplicationScheduleColumns
        } else if (type === '促销特价订单') {
          this.defColumns = this.specialPromotionColumns
        } else if (type === '销售订单') {
          this.defColumns = this.saleOrderColumns
        } else if (type === this.$t('manuManagement.salesDelivery')) {
          this.defColumns = this.saleOutColumns
        } else if (type === '销售退货入库') {
          this.defColumns = this.saleBackColumns
        } else if (type === '其它入库') {
          this.defColumns = this.otherInColumns
        } else if (type === '其它出库') {
          this.defColumns = this.otherOutColumns
        } else if (type === '调拨出库') {
          this.defColumns = this.allocationOutColumns
        } else if (type === '验收单') {
          this.defColumns = this.acceptanceCertificateColumns
        } else if (type === '验收入库') {
          this.defColumns = this.acceptanceCertificateColumns1
        } else if (type === '配送单') {
          this.defColumns = this.deliveryNoteColumns
        } else if (type === '配送出库') {
          this.defColumns = this.deliveryNoteColumns1
        } else if (type === '期初库存') {
          this.defColumns = this.openingInventoryColumns
        } else if (type === '要货申请单') {
          this.defColumns = this.requisitionFormColumns
        } else if (type === '组装单') {
          this.defColumns = this.assembleColumns
        } else if (type === '拆卸单') {
          this.defColumns = this.disassembleColumns
        } else if (type === '盘点复盘') {
          this.defColumns = this.stockCheckReplayColumns
        }
        //判断序列号、批号、有效期、多属性是否有值
        let needAddkeywords = []
        for (let i = 0; i < ds.length; i++) {
          if(ds[i].snList) {
            needAddkeywords.push('snList')
          }
          if(ds[i].batchNumber) {
            needAddkeywords.push('batchNumber')
          }
          if(ds[i].expirationDate) {
            needAddkeywords.push('expirationDate')
          }
          if(ds[i].sku) {
            needAddkeywords.push('sku')
          }
        }
        if(record.status === '3') {
          //部分采购|部分销售的时候显示全部列
          this.columns = this.defColumns
        } else if(record.purchaseStatus === '3') {
          //将已出库的标题转为已采购，针对销售订单转采购订单的场景
          let currentCol = []
          for(let i=0; i<this.defColumns.length; i++){
            let info = {}
            info.title = this.defColumns[i].title
            info.dataIndex = this.defColumns[i].dataIndex
            info.width = this.defColumns[i].width
            if(this.defColumns[i].dataIndex === 'finishNumber') {
              info.title = '已采购'
            }
            currentCol.push(info)
          }
          this.columns = currentCol
        } else {
          let currentCol = []
          for(let i=0; i<this.defColumns.length; i++){
            //移除列
            let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku']
            if(needRemoveKeywords.indexOf(this.defColumns[i].dataIndex)===-1) {
              let info = {}
              info.title = this.defColumns[i].title
              info.dataIndex = this.defColumns[i].dataIndex
              info.width = this.defColumns[i].width
              currentCol.push(info)
            }
            //添加有数据的列
            if(needAddkeywords.indexOf(this.defColumns[i].dataIndex)>-1) {
              let info = {}
              info.title = this.defColumns[i].title
              info.dataIndex = this.defColumns[i].dataIndex
              info.width = this.defColumns[i].width
              currentCol.push(info)
            }
          }
          this.columns = currentCol
        }
      },
      initPlatform() {
        getPlatformConfigByKey({"platformKey": "bill_print_flag"}).then((res)=> {
          if (res && res.code === 200) {
            if(this.billType === '采购订单'||this.billType === '采购入库'||this.billType === '采购退货出库'||
              this.billType === '销售订单'||this.billType === this.$t('manuManagement.salesDelivery')||this.billType === '销售退货入库'||
              this.billType === '促销特价订单') {
              this.billPrintFlag = res.data.platformValue==='1'?true:false
            }
          }
        })
      },
      getSystemConfig() {
        getCurrentSystemConfig().then((res) => {
          if(res.code === 200 && res.data){
            this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
          }
        })
      },
      getFinancialBillNoByBillId(billId) {
        getAction('/accountHead/getFinancialBillNoByBillId', {billId: billId}).then(res => {
          if(res && res.code === 200){
            this.financialBillNoList = res.data
          }
        })
      },
      show(record, type) {
        this.billType = type
        //附件下载
        this.fileList = record.fileName
        this.visible = true;
        this.model = Object.assign({}, record);
        if(this.model.backAmount) {
          this.model.getAmount = (this.model.changeAmount + this.model.backAmount).toFixed(2)
        } else {
          this.model.getAmount = this.model.changeAmount
        }
        this.model.debt = (this.model.discountLastMoney + this.model.otherMoney - (this.model.deposit + this.model.changeAmount)).toFixed(2)
        this.$nextTick(() => {
          this.form.setFieldsValue(pick(this.model,'id'))
        });
        let showType = 'basic'
        if(record.status === '3') {
          showType = 'basic'
        } else if(record.purchaseStatus === '3') {
          showType = 'purchase'
        }
        // console.log(this.model)
        let params = {
          headerId: this.model.id,
          mpList: getMpListShort(Vue.ls.get('materialPropertyList')),  //扩展属性
          linkType: showType,
          defaultNumber: this.model.defaultNumber
        }
        if(this.billType === '促销特价订单') {
          this.url.detailList = 'promotionHead/getDetailList'
        }
        if(this.billType === '要货申请进度表') {
          this.url.detailList = 'depotHead/requireGoodsDetails'
        }
        let url = this.readOnly ? this.url.detailList : this.url.detailList;
        this.requestSubTableData(record, type, url, params);
        this.initPlatform()
        this.getSystemConfig()
        this.getFinancialBillNoByBillId(this.model.id)
      },
      requestSubTableData(record, type, url, params, success) {
        this.loading = true
        getAction(url, params).then(res => {
          if(res && res.code === 200){
            this.dataSource = res.data.rows
            this.initSetting(record, type, this.dataSource)
            typeof success === 'function' ? success(res) : ''
          }
        }).finally(() => {
          this.loading = false
        })
      },
      handleCancel() {
        this.close()
      },
      close() {
        this.$emit('close');
        this.visible = false;
      },
      myHandleDetail(billNumber) {
        findBillDetailByNumber({ number: billNumber }).then((res) => {
          if (res && res.code === 200) {
            let type = res.data.type === "其它"? "":res.data.type
            this.show(res.data, res.data.subType + type);
            this.title = res.data.subType + type + "-详情";
          }
        })
      },
      myHandleFinancialDetail(billNo) {
        let that = this
        findFinancialDetailByNumber({ billNo: billNo }).then((res) => {
          if (res && res.code === 200) {
            if(that.$refs.financialDetailModal) {
              that.$refs.financialDetailModal.show(res.data, res.data.type);
              that.$refs.financialDetailModal.title= res.data.type + "-详情";
            }
          }
        })
      },
      //三联打印预览
      handlePrint() {
        getPlatformConfigByKey({"platformKey": "bill_print_url"}).then((res)=> {
          if (res && res.code === 200) {
            let billPrintUrl = res.data.platformValue + '?no=' + this.model.number
            let billPrintHeight = this.dataSource.length*50 + 600
            this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight);
            this.$refs.modalDetail.title = this.billType + "-三联打印预览";
          }
        })
      }
    }
  }
</script>

<style scoped>

</style>